package at.ac.tuwien.lsds.util;

import at.ac.tuwien.lsds.model.ScheduleStrategyEnum;
import at.ac.tuwien.lsds.schedule.strategy.ScheduleStrategy;
import at.ac.tuwien.lsds.schedule.strategy.SchedulerA;
import at.ac.tuwien.lsds.schedule.strategy.SchedulerB;
import at.ac.tuwien.lsds.schedule.strategy.SchedulerC;
import at.ac.tuwien.lsds.schedule.strategy.SchedulerD;

public class ScheduleStrategyFactory {

	public static ScheduleStrategy createStrategy(ScheduleStrategyEnum strategy){
		ScheduleStrategy ret = null;
		if(strategy.equals(ScheduleStrategyEnum.A)){
			ret = new SchedulerA();
		} else if(strategy.equals(ScheduleStrategyEnum.B)){
			ret = new SchedulerB();
		} else if(strategy.equals(ScheduleStrategyEnum.C)){
			ret = new SchedulerC();
		} else if(strategy.equals(ScheduleStrategyEnum.D)){
			ret = new SchedulerD();
		}
		
		return ret;
	}
}
